

# Set our source files
source_files = ['client.cpp']

# Set our required libraries
libraries = ['util','crypto','protobuf','boost_filesystem','boost_system','pthread', 'rt','z','dl']
library_paths = ['../util/']

env = Environment()

env.Append( CPPFLAGS=['-std=c++11', '-pthread',  '-c'] )


#env.StaticLibrary('util', source_files)
# Tell SCons the program to build
prgTarget = env.Program('../tftp/tcz64/myConfig/client', source_files, LIBS = libraries, LIBPATH = library_paths, LINKFLAGS="--static")



myfile = env.Command(['../tftp/tcz64/myConfig.gz'], ['client.cpp','../util/libutil.a'], 'cd tftp/tcz64/ && make')

#env.AlwaysBuild(myfile)

#myfile = env.Command( ['client'], 'client.cpp', 'cd ./$SOURCE.dir && protoc --cpp_out=. $SOURCE.file')

